package com.alibaba.algo;

import com.alibaba.algo.core.resp.BaseResult;
import com.fasterxml.jackson.databind.ser.Serializers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * User: glorysongglory
 * Date: 2020/11/13
 * Time: 14:46
 */
@RestController
@RequestMapping(value = "/t")
public class RestTest {

    @GetMapping(value = "/get1")
    public BaseResult get1(String a,String b,String c){
        return BaseResult.buildSuccess();
    }

    @PostMapping(value = "/post1")
    public BaseResult post1(HttpServletRequest httpServletRequest,String a,String b,String c){
        httpServletRequest.getContentType();
        httpServletRequest.getHeader("token");
        return BaseResult.buildSuccess();
    }



}
